package datas
{
	import main.DataSubBase;
	
	import struct.Scenic;
	import struct.UserComment;
	
	public class ScenicData extends DataSubBase
	{
		private var resturantList:Array;
		
		public function ScenicData()
		{
		}
		
		private function test():void
		{	
			var cm:UserComment = new UserComment;
			cm.commentId = 1;
			cm.commentType = 1;
			cm.userName = "吉哥";
			cm.userCommentTime = 1371458652218;
			cm.commentContent = "这个不错不错啊";
			cm.commentStarLevel = 8;
			
			resturantList = [];
			var list:Array = xmlLoader.scenicXml.load("shop");
			for(var i:int = 0;i < list.length;i++){
				var obj:Scenic = new Scenic();
				obj.init(data.uri,data.xmlLoaderManager);
				obj.initWithData(list[i]);
//				obj.commentList = [cm,cm,cm,cm,cm,cm];
				resturantList.push(obj);
			}
		}
		
		public function get shopList():Array
		{
			test();
			return resturantList;
		}
	}
}